package com.wudl.common.exception;

import com.wudl.common.api.IErrorCode;
import lombok.Data;

/**
 * @author ：wudl
 * @date ：Created in 2022-03-17 22:02
 * @description：
 * @modified By：
 * @version: 1.0
 */
@Data
public class GateWayException extends RuntimeException{

    private long code;

    private String message;

    public GateWayException(IErrorCode iErrorCode) {
        this.code = iErrorCode.getCode();
        this.message = iErrorCode.getMessage();
    }
}
